home *** CD-ROM | disk | FTP | other *** search
/ Developer CD Series 1999 …ember: Reference Library / Apple Developer Reference Library (December 1999) (Disk 1).iso / mac / Technical Documentation / Develop / develop Issue 22 / develop Issue 22 code / Paper Juggling.sea / Paper Juggling / JuggleFiles.c < prev    next >
MacBinary  |  1995-04-18  |  6.1 KB  |  [TEXT/MMCC]

open in: MacOS 8.1     |     Win98     |     DOS

browse contents    |     view JSON data     |     view as text


This file was processed as: MacBinary (archive/macBinary).

ConfidenceProgramDetectionMatch TypeSupport
66% dexvert Compact Compressed (Unix) (archive/compact) ext Supported
10% dexvert MacBinary (archive/macBinary) fallback Supported
1% dexvert Text File (text/txt) fallback Supported
100% file MacBinary II, inited, Tue Apr 18 19:02:18 1995, modified Tue Apr 18 19:02:18 1995, creator 'MMCC', type ASCII, 5535 bytes "JuggleFiles.c" magic text fragment for file(1) cmd, 1st line "#include "PaperJuggling.h"", 2nd line "#include <StandardFile.h>", 3rd line "#include <Folders.h>", 4th line "", 5th line "// This routine just calls WriteJuggleToFile with the fsspec in the juggle", at 0x161f 410 bytes resource magic text fragment for file(1) cmd, 1st line "#include "PaperJuggling.h"", 2nd line "#include <StandardFile.h>", 3rd line "#include <Folders.h>", 4th line "", 5th line "// This routine just calls WriteJuggleToFile with the fsspec in the juggle" default (weak)
99% file data default
74% TrID Macintosh plain text (MacBinary) default
25% TrID MacBinary 2 default (weak)
100% siegfried fmt/1762 MacBinary (II) default
100% lsar MacBinary default


id metadata
keyvalue
macFileType[TEXT]
macFileCreator[MMCC]



hex view
+--------+-------------------------+-------------------------+--------+--------+
|00000000| 00 0d 4a 75 67 67 6c 65 | 46 69 6c 65 73 2e 63 00 |..Juggle|Files.c.|
|00000010| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000020| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000030| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000040| 00 54 45 58 54 4d 4d 43 | 43 01 00 00 00 00 00 00 |.TEXTMMC|C.......|
|00000050| 00 00 00 00 00 15 9f 00 | 00 01 9a ab b9 f5 7a ab |........|......z.|
|00000060| b9 f5 7a 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |..z.....|........|
|00000070| 00 00 00 00 00 00 00 00 | 00 00 81 81 6e e0 00 00 |........|....n...|
|00000080| 23 69 6e 63 6c 75 64 65 | 20 22 50 61 70 65 72 4a |#include| "PaperJ|
|00000090| 75 67 67 6c 69 6e 67 2e | 68 22 0d 23 69 6e 63 6c |uggling.|h".#incl|
|000000a0| 75 64 65 20 3c 53 74 61 | 6e 64 61 72 64 46 69 6c |ude <Sta|ndardFil|
|000000b0| 65 2e 68 3e 0d 23 69 6e | 63 6c 75 64 65 20 3c 46 |e.h>.#in|clude <F|
|000000c0| 6f 6c 64 65 72 73 2e 68 | 3e 0d 0d 2f 2f 20 54 68 |olders.h|>..// Th|
|000000d0| 69 73 20 72 6f 75 74 69 | 6e 65 20 6a 75 73 74 20 |is routi|ne just |
|000000e0| 63 61 6c 6c 73 20 57 72 | 69 74 65 4a 75 67 67 6c |calls Wr|iteJuggl|
|000000f0| 65 54 6f 46 69 6c 65 20 | 77 69 74 68 20 74 68 65 |eToFile |with the|
|00000100| 20 66 73 73 70 65 63 20 | 69 6e 20 74 68 65 20 6a | fsspec |in the j|
|00000110| 75 67 67 6c 65 0d 4f 53 | 45 72 72 20 53 61 76 65 |uggle.OS|Err Save|
|00000120| 4a 75 67 67 6c 65 28 4a | 75 67 67 6c 65 48 61 6e |Juggle(J|uggleHan|
|00000130| 64 6c 65 20 61 4a 75 67 | 67 6c 65 29 0d 7b 0d 09 |dle aJug|gle).{..|
|00000140| 46 53 53 70 65 63 09 09 | 66 69 6c 65 53 70 65 63 |FSSpec..|fileSpec|
|00000150| 3b 0d 09 0d 09 66 69 6c | 65 53 70 65 63 20 3d 20 |;....fil|eSpec = |
|00000160| 28 2a 61 4a 75 67 67 6c | 65 29 2d 3e 66 69 6c 65 |(*aJuggl|e)->file|
|00000170| 53 70 65 63 3b 0d 09 72 | 65 74 75 72 6e 20 57 72 |Spec;..r|eturn Wr|
|00000180| 69 74 65 4a 75 67 67 6c | 65 54 6f 46 69 6c 65 28 |iteJuggl|eToFile(|
|00000190| 26 66 69 6c 65 53 70 65 | 63 2c 20 61 4a 75 67 67 |&fileSpe|c, aJugg|
|000001a0| 6c 65 29 3b 0d 7d 0d 0d | 2f 2f 20 4d 61 6e 2c 20 |le);.}..|// Man, |
|000001b0| 69 74 27 73 20 61 20 70 | 61 69 6e 20 77 68 65 6e |it's a p|ain when|
|000001c0| 20 70 65 6f 70 6c 65 20 | 77 61 6e 74 20 74 6f 20 | people |want to |
|000001d0| 72 65 70 6c 61 63 65 20 | 61 6e 20 65 78 69 73 74 |replace |an exist|
|000001e0| 69 6e 67 20 66 69 6c 65 | 2e 20 53 68 65 65 73 68 |ing file|. Sheesh|
|000001f0| 21 0d 4f 53 45 72 72 20 | 4a 75 67 67 6c 65 54 6f |!.OSErr |JuggleTo|
|00000200| 45 78 69 73 74 69 6e 67 | 46 69 6c 65 28 46 53 53 |Existing|File(FSS|
|00000210| 70 65 63 20 2a 66 69 6c | 65 53 70 65 63 2c 20 4a |pec *fil|eSpec, J|
|00000220| 75 67 67 6c 65 48 61 6e | 64 6c 65 20 61 4a 75 67 |uggleHan|dle aJug|
|00000230| 67 6c 65 29 0d 7b 0d 09 | 4f 53 45 72 72 09 65 72 |gle).{..|OSErr.er|
|00000240| 72 3b 0d 09 75 6e 73 69 | 67 6e 65 64 20 6c 6f 6e |r;..unsi|gned lon|
|00000250| 67 09 74 65 6d 70 4c 6f | 6e 67 3b 0d 09 73 68 6f |g.tempLo|ng;..sho|
|00000260| 72 74 09 74 65 6d 70 52 | 65 66 4e 75 6d 3b 0d 09 |rt.tempR|efNum;..|
|00000270| 53 74 72 32 35 35 09 74 | 65 6d 70 4e 61 6d 65 3b |Str255.t|empName;|
|00000280| 0d 09 46 53 53 70 65 63 | 09 74 65 6d 70 53 70 65 |..FSSpec|.tempSpe|
|00000290| 63 3b 0d 09 46 49 6e 66 | 6f 09 66 69 6e 64 65 72 |c;..FInf|o.finder|
|000002a0| 53 74 75 66 66 3b 0d 0d | 09 2f 2a 20 4d 61 6b 65 |Stuff;..|./* Make|
|000002b0| 20 61 20 75 6e 69 71 75 | 65 20 66 69 6c 65 20 6e | a uniqu|e file n|
|000002c0| 61 6d 65 20 2a 2f 0d 09 | 47 65 74 44 61 74 65 54 |ame */..|GetDateT|
|000002d0| 69 6d 65 28 26 74 65 6d | 70 4c 6f 6e 67 29 3b 0d |ime(&tem|pLong);.|
|000002e0| 09 4e 75 6d 54 6f 53 74 | 72 69 6e 67 28 74 65 6d |.NumToSt|ring(tem|
|000002f0| 70 4c 6f 6e 67 2c 20 74 | 65 6d 70 4e 61 6d 65 29 |pLong, t|empName)|
|00000300| 3b 0d 09 0d 09 2f 2a 20 | 6c 6f 63 61 74 65 20 74 |;..../* |locate t|
|00000310| 68 65 20 74 65 6d 70 6f | 72 61 72 79 20 69 74 65 |he tempo|rary ite|
|00000320| 6d 73 20 66 6f 6c 64 65 | 72 20 2a 2f 0d 09 65 72 |ms folde|r */..er|
|00000330| 72 20 3d 20 46 69 6e 64 | 46 6f 6c 64 65 72 28 66 |r = Find|Folder(f|
|00000340| 69 6c 65 53 70 65 63 2d | 3e 76 52 65 66 4e 75 6d |ileSpec-|>vRefNum|
|00000350| 2c 20 6b 54 65 6d 70 6f | 72 61 72 79 46 6f 6c 64 |, kTempo|raryFold|
|00000360| 65 72 54 79 70 65 2c 20 | 6b 43 72 65 61 74 65 46 |erType, |kCreateF|
|00000370| 6f 6c 64 65 72 2c 0d 09 | 09 09 09 09 09 26 74 65 |older,..|.....&te|
|00000380| 6d 70 52 65 66 4e 75 6d | 2c 20 28 6c 6f 6e 67 20 |mpRefNum|, (long |
|00000390| 2a 29 26 74 65 6d 70 4c | 6f 6e 67 29 3b 0d 09 69 |*)&tempL|ong);..i|
|000003a0| 66 28 65 72 72 20 3d 3d | 20 6e 6f 45 72 72 29 0d |f(err ==| noErr).|
|000003b0| 09 7b 0d 09 09 2f 2a 20 | 4d 61 6b 65 20 61 20 6e |.{.../* |Make a n|
|000003c0| 65 77 20 46 53 53 70 65 | 63 20 2a 2f 0d 09 09 65 |ew FSSpe|c */...e|
|000003d0| 72 72 20 3d 20 46 53 4d | 61 6b 65 46 53 53 70 65 |rr = FSM|akeFSSpe|
|000003e0| 63 28 74 65 6d 70 52 65 | 66 4e 75 6d 2c 20 74 65 |c(tempRe|fNum, te|
|000003f0| 6d 70 4c 6f 6e 67 2c 20 | 74 65 6d 70 4e 61 6d 65 |mpLong, |tempName|
|00000400| 2c 20 26 74 65 6d 70 53 | 70 65 63 29 3b 0d 09 09 |, &tempS|pec);...|
|00000410| 69 66 28 65 72 72 20 3d | 3d 20 6e 6f 45 72 72 20 |if(err =|= noErr |
|00000420| 7c 7c 20 65 72 72 20 3d | 3d 20 66 6e 66 45 72 72 ||| err =|= fnfErr|
|00000430| 29 0d 09 09 7b 0d 09 09 | 09 2f 2a 20 43 72 65 61 |)...{...|./* Crea|
|00000440| 74 65 20 74 68 65 20 74 | 65 6d 70 20 66 69 6c 65 |te the t|emp file|
|00000450| 20 2a 2f 0d 09 09 09 65 | 72 72 20 3d 20 46 53 70 | */....e|rr = FSp|
|00000460| 43 72 65 61 74 65 28 26 | 74 65 6d 70 53 70 65 63 |Create(&|tempSpec|
|00000470| 2c 20 27 74 72 73 68 27 | 2c 20 27 74 72 73 68 27 |, 'trsh'|, 'trsh'|
|00000480| 2c 20 73 6d 53 79 73 74 | 65 6d 53 63 72 69 70 74 |, smSyst|emScript|
|00000490| 29 3b 0d 09 09 09 69 66 | 28 65 72 72 20 3d 3d 20 |);....if|(err == |
|000004a0| 6e 6f 45 72 72 29 0d 09 | 09 09 7b 0d 09 09 09 09 |noErr)..|..{.....|
|000004b0| 2f 2a 20 4f 4b 2c 20 77 | 65 20 68 61 76 65 20 61 |/* OK, w|e have a|
|000004c0| 20 6e 65 77 20 74 65 6d | 70 20 66 69 6c 65 2c 20 | new tem|p file, |
|000004d0| 6c 65 74 27 73 20 77 72 | 69 74 65 20 74 6f 20 69 |let's wr|ite to i|
|000004e0| 74 20 2a 2f 0d 09 09 09 | 09 65 72 72 20 3d 20 57 |t */....|.err = W|
|000004f0| 72 69 74 65 4a 75 67 67 | 6c 65 54 6f 46 69 6c 65 |riteJugg|leToFile|
|00000500| 28 26 74 65 6d 70 53 70 | 65 63 2c 20 61 4a 75 67 |(&tempSp|ec, aJug|
|00000510| 67 6c 65 29 3b 0d 09 09 | 09 09 69 66 28 65 72 72 |gle);...|..if(err|
|00000520| 20 3d 3d 20 6e 6f 45 72 | 72 29 0d 09 09 09 09 7b | == noEr|r).....{|
|00000530| 0d 09 09 09 09 09 2f 2a | 20 4c 6f 6f 6b 69 6e 27 |....../*| Lookin'|
|00000540| 20 67 6f 6f 64 2e 20 4e | 6f 77 2c 20 77 65 20 6e | good. N|ow, we n|
|00000550| 65 65 64 20 74 6f 20 65 | 78 63 68 61 6e 67 65 20 |eed to e|xchange |
|00000560| 74 68 65 20 64 61 74 61 | 2c 20 73 65 74 20 74 68 |the data|, set th|
|00000570| 65 20 46 69 6e 64 65 72 | 0d 09 09 09 09 09 09 49 |e Finder|.......I|
|00000580| 6e 66 6f 20 6f 66 20 74 | 68 65 20 6f 6c 64 20 28 |nfo of t|he old (|
|00000590| 6e 6f 77 20 6e 65 77 29 | 20 66 69 6c 65 2c 20 61 |now new)| file, a|
|000005a0| 6e 64 20 64 65 6c 65 74 | 65 20 74 68 65 20 74 65 |nd delet|e the te|
|000005b0| 6d 70 20 66 69 6c 65 20 | 2a 2f 0d 09 09 09 09 09 |mp file |*/......|
|000005c0| 65 72 72 20 3d 20 46 53 | 70 45 78 63 68 61 6e 67 |err = FS|pExchang|
|000005d0| 65 46 69 6c 65 73 28 26 | 74 65 6d 70 53 70 65 63 |eFiles(&|tempSpec|
|000005e0| 2c 20 66 69 6c 65 53 70 | 65 63 29 3b 0d 09 09 09 |, fileSp|ec);....|
|000005f0| 09 09 69 66 28 65 72 72 | 20 3d 3d 20 6e 6f 45 72 |..if(err| == noEr|
|00000600| 72 29 0d 09 09 09 09 09 | 7b 0d 09 09 09 09 09 09 |r)......|{.......|
|00000610| 2f 2a 20 46 69 72 73 74 | 20 67 65 74 20 74 68 65 |/* First| get the|
|00000620| 20 65 78 69 73 74 69 6e | 67 20 66 69 6e 64 65 72 | existin|g finder|
|00000630| 20 49 6e 66 6f 20 2a 2f | 0d 09 09 09 09 09 09 65 | Info */|.......e|
|00000640| 72 72 20 3d 20 46 53 70 | 47 65 74 46 49 6e 66 6f |rr = FSp|GetFInfo|
|00000650| 28 66 69 6c 65 53 70 65 | 63 2c 20 26 66 69 6e 64 |(fileSpe|c, &find|
|00000660| 65 72 53 74 75 66 66 29 | 3b 0d 09 09 09 09 09 09 |erStuff)|;.......|
|00000670| 69 66 28 65 72 72 20 3d | 3d 20 6e 6f 45 72 72 29 |if(err =|= noErr)|
|00000680| 0d 09 09 09 09 09 09 7b | 0d 09 09 09 09 09 09 09 |.......{|........|
|00000690| 2f 2a 20 74 68 65 6e 20 | 73 65 74 20 69 74 20 74 |/* then |set it t|
|000006a0| 6f 20 6f 75 72 20 74 79 | 70 65 20 61 6e 64 20 63 |o our ty|pe and c|
|000006b0| 72 65 61 74 6f 72 20 2a | 2f 0d 09 09 09 09 09 09 |reator *|/.......|
|000006c0| 09 66 69 6e 64 65 72 53 | 74 75 66 66 2e 66 64 54 |.finderS|tuff.fdT|
|000006d0| 79 70 65 20 3d 20 6b 4a | 75 67 67 6c 65 46 69 6c |ype = kJ|uggleFil|
|000006e0| 65 54 79 70 65 3b 0d 09 | 09 09 09 09 09 09 66 69 |eType;..|......fi|
|000006f0| 6e 64 65 72 53 74 75 66 | 66 2e 66 64 43 72 65 61 |nderStuf|f.fdCrea|
|00000700| 74 6f 72 20 3d 20 6b 4a | 75 67 67 6c 65 43 72 65 |tor = kJ|uggleCre|
|00000710| 61 74 6f 72 54 79 70 65 | 3b 0d 09 09 09 09 09 09 |atorType|;.......|
|00000720| 09 2f 2a 20 44 6f 6e 27 | 74 20 63 61 72 65 20 61 |./* Don'|t care a|
|00000730| 62 6f 75 74 20 74 68 69 | 73 20 65 72 72 6f 72 3a |bout thi|s error:|
|00000740| 20 77 65 20 64 69 64 20 | 6f 75 72 20 62 65 73 74 | we did |our best|
|00000750| 2c 20 62 79 20 67 6f 6c | 6c 79 20 2a 2f 0d 09 09 |, by gol|ly */...|
|00000760| 09 09 09 09 09 46 53 70 | 53 65 74 46 49 6e 66 6f |.....FSp|SetFInfo|
|00000770| 28 66 69 6c 65 53 70 65 | 63 2c 20 26 66 69 6e 64 |(fileSpe|c, &find|
|00000780| 65 72 53 74 75 66 66 29 | 3b 0d 09 09 09 09 09 09 |erStuff)|;.......|
|00000790| 7d 0d 09 09 09 09 09 7d | 0d 09 09 09 09 7d 0d 09 |}......}|.....}..|
|000007a0| 09 09 09 2f 2a 20 09 57 | 65 20 73 75 63 63 65 73 |.../* .W|e succes|
|000007b0| 73 66 75 6c 6c 79 20 63 | 72 65 61 74 65 64 20 74 |sfully c|reated t|
|000007c0| 68 65 20 74 65 6d 70 20 | 66 69 6c 65 2c 20 73 6f |he temp |file, so|
|000007d0| 20 6e 6f 77 20 64 65 6c | 65 74 65 20 69 74 2c 0d | now del|ete it,.|
|000007e0| 09 09 09 09 09 77 68 61 | 74 65 76 65 72 20 65 6c |.....wha|tever el|
|000007f0| 73 65 20 6d 61 79 20 68 | 61 76 65 20 68 61 70 70 |se may h|ave happ|
|00000800| 65 6e 65 64 2e 20 49 66 | 20 77 65 20 63 61 6e 27 |ened. If| we can'|
|00000810| 74 2c 20 74 68 65 72 65 | 27 73 20 0d 09 09 09 09 |t, there|'s .....|
|00000820| 09 6e 6f 74 68 69 6e 67 | 20 77 65 20 63 61 6e 20 |.nothing| we can |
|00000830| 64 6f 20 61 62 6f 75 74 | 20 69 74 2c 20 73 6f 20 |do about| it, so |
|00000840| 74 68 69 73 20 65 72 72 | 6f 72 20 69 73 20 69 67 |this err|or is ig|
|00000850| 6e 6f 72 65 64 20 2a 2f | 0d 09 09 09 09 46 53 70 |nored */|.....FSp|
|00000860| 44 65 6c 65 74 65 28 26 | 74 65 6d 70 53 70 65 63 |Delete(&|tempSpec|
|00000870| 29 3b 0d 09 09 09 7d 0d | 09 09 7d 0d 09 7d 0d 09 |);....}.|..}..}..|
|00000880| 0d 09 72 65 74 75 72 6e | 20 65 72 72 3b 0d 7d 0d |..return| err;.}.|
|00000890| 0d 2f 2a 20 49 74 27 73 | 20 6d 75 63 68 20 65 61 |./* It's| much ea|
|000008a0| 73 69 65 72 20 6a 75 73 | 74 20 74 6f 20 63 72 65 |sier jus|t to cre|
|000008b0| 61 74 65 20 61 20 6e 65 | 77 20 66 69 6c 65 20 2a |ate a ne|w file *|
|000008c0| 2f 0d 4f 53 45 72 72 20 | 4a 75 67 67 6c 65 54 6f |/.OSErr |JuggleTo|
|000008d0| 4e 65 77 46 69 6c 65 28 | 46 53 53 70 65 63 20 2a |NewFile(|FSSpec *|
|000008e0| 66 69 6c 65 53 70 65 63 | 2c 20 4a 75 67 67 6c 65 |fileSpec|, Juggle|
|000008f0| 48 61 6e 64 6c 65 20 61 | 4a 75 67 67 6c 65 29 0d |Handle a|Juggle).|
|00000900| 7b 0d 09 4f 53 45 72 72 | 09 65 72 72 3b 0d 0d 09 |{..OSErr|.err;...|
|00000910| 65 72 72 20 3d 20 46 53 | 70 43 72 65 61 74 65 28 |err = FS|pCreate(|
|00000920| 66 69 6c 65 53 70 65 63 | 2c 20 6b 4a 75 67 67 6c |fileSpec|, kJuggl|
|00000930| 65 43 72 65 61 74 6f 72 | 54 79 70 65 2c 20 6b 4a |eCreator|Type, kJ|
|00000940| 75 67 67 6c 65 46 69 6c | 65 54 79 70 65 2c 20 73 |uggleFil|eType, s|
|00000950| 6d 53 79 73 74 65 6d 53 | 63 72 69 70 74 29 3b 0d |mSystemS|cript);.|
|00000960| 09 69 66 28 65 72 72 20 | 3d 3d 20 6e 6f 45 72 72 |.if(err |== noErr|
|00000970| 29 0d 09 7b 0d 09 09 65 | 72 72 20 3d 20 57 72 69 |)..{...e|rr = Wri|
|00000980| 74 65 4a 75 67 67 6c 65 | 54 6f 46 69 6c 65 28 66 |teJuggle|ToFile(f|
|00000990| 69 6c 65 53 70 65 63 2c | 20 61 4a 75 67 67 6c 65 |ileSpec,| aJuggle|
|000009a0| 29 3b 0d 09 09 2f 2a 20 | 49 66 20 74 68 65 72 65 |);.../* |If there|
|000009b0| 20 77 65 72 65 20 65 72 | 72 6f 72 73 2c 20 64 65 | were er|rors, de|
|000009c0| 6c 65 74 65 20 74 68 65 | 20 66 69 6c 65 20 2a 2f |lete the| file */|
|000009d0| 0d 09 09 69 66 28 65 72 | 72 20 21 3d 20 6e 6f 45 |...if(er|r != noE|
|000009e0| 72 72 29 0d 09 09 09 46 | 53 70 44 65 6c 65 74 65 |rr)....F|SpDelete|
|000009f0| 28 66 69 6c 65 53 70 65 | 63 29 3b 0d 09 7d 0d 09 |(fileSpe|c);..}..|
|00000a00| 72 65 74 75 72 6e 20 65 | 72 72 3b 0d 7d 0d 0d 2f |return e|rr;.}../|
|00000a10| 2f 20 57 72 69 74 65 73 | 20 74 68 65 20 6a 75 67 |/ Writes| the jug|
|00000a20| 67 6c 65 20 74 6f 20 74 | 68 65 20 67 69 76 65 6e |gle to t|he given|
|00000a30| 20 46 53 53 70 65 63 0d | 4f 53 45 72 72 20 57 72 | FSSpec.|OSErr Wr|
|00000a40| 69 74 65 4a 75 67 67 6c | 65 54 6f 46 69 6c 65 28 |iteJuggl|eToFile(|
|00000a50| 46 53 53 70 65 63 20 2a | 66 69 6c 65 53 70 65 63 |FSSpec *|fileSpec|
|00000a60| 2c 20 4a 75 67 67 6c 65 | 48 61 6e 64 6c 65 20 61 |, Juggle|Handle a|
|00000a70| 4a 75 67 67 6c 65 29 0d | 7b 0d 09 4a 75 67 67 6c |Juggle).|{..Juggl|
|00000a80| 65 50 6f 69 6e 74 65 72 | 09 6a 75 67 50 74 72 3b |ePointer|.jugPtr;|
|00000a90| 0d 09 4f 53 45 72 72 09 | 09 09 65 72 72 3b 0d 09 |..OSErr.|..err;..|
|00000aa0| 6c 6f 6e 67 09 09 09 77 | 72 69 74 65 53 69 7a 65 |long...w|riteSize|
|00000ab0| 3b 0d 09 73 68 6f 72 74 | 09 09 09 72 65 66 4e 75 |;..short|...refNu|
|00000ac0| 6d 3b 0d 09 0d 09 48 4c | 6f 63 6b 28 28 48 61 6e |m;....HL|ock((Han|
|00000ad0| 64 6c 65 29 61 4a 75 67 | 67 6c 65 29 3b 0d 09 6a |dle)aJug|gle);..j|
|00000ae0| 75 67 50 74 72 20 3d 20 | 2a 61 4a 75 67 67 6c 65 |ugPtr = |*aJuggle|
|00000af0| 3b 0d 09 0d 09 2f 2a 20 | 46 69 72 73 74 20 6f 70 |;..../* |First op|
|00000b00| 65 6e 20 74 68 65 20 66 | 69 6c 65 20 2a 2f 0d 09 |en the f|ile */..|
|00000b10| 65 72 72 20 3d 20 46 53 | 70 4f 70 65 6e 44 46 28 |err = FS|pOpenDF(|
|00000b20| 66 69 6c 65 53 70 65 63 | 2c 20 66 73 57 72 50 65 |fileSpec|, fsWrPe|
|00000b30| 72 6d 2c 20 26 72 65 66 | 4e 75 6d 29 3b 0d 09 69 |rm, &ref|Num);..i|
|00000b40| 66 28 65 72 72 20 3d 3d | 20 6e 6f 45 72 72 29 0d |f(err ==| noErr).|
|00000b50| 09 7b 0d 09 09 2f 2f 20 | 77 72 69 74 65 20 6e 75 |.{...// |write nu|
|00000b60| 6d 6a 75 67 67 6c 65 72 | 73 20 61 6e 64 20 6e 75 |mjuggler|s and nu|
|00000b70| 6d 43 6f 75 6e 74 73 20 | 6f 75 74 0d 09 09 77 72 |mCounts |out...wr|
|00000b80| 69 74 65 53 69 7a 65 20 | 3d 20 73 69 7a 65 6f 66 |iteSize |= sizeof|
|00000b90| 28 73 68 6f 72 74 29 3b | 0d 09 09 65 72 72 20 3d |(short);|...err =|
|00000ba0| 20 46 53 57 72 69 74 65 | 28 72 65 66 4e 75 6d 2c | FSWrite|(refNum,|
|00000bb0| 20 26 77 72 69 74 65 53 | 69 7a 65 2c 20 26 6a 75 | &writeS|ize, &ju|
|00000bc0| 67 50 74 72 2d 3e 6e 75 | 6d 4a 75 67 67 6c 65 72 |gPtr->nu|mJuggler|
|00000bd0| 73 29 3b 0d 09 09 69 66 | 28 65 72 72 20 3d 3d 20 |s);...if|(err == |
|00000be0| 6e 6f 45 72 72 29 0d 09 | 09 7b 0d 09 09 09 77 72 |noErr)..|.{....wr|
|00000bf0| 69 74 65 53 69 7a 65 20 | 3d 20 73 69 7a 65 6f 66 |iteSize |= sizeof|
|00000c00| 28 73 68 6f 72 74 29 3b | 0d 09 09 09 65 72 72 20 |(short);|....err |
|00000c10| 3d 20 46 53 57 72 69 74 | 65 28 72 65 66 4e 75 6d |= FSWrit|e(refNum|
|00000c20| 2c 20 26 77 72 69 74 65 | 53 69 7a 65 2c 20 26 6a |, &write|Size, &j|
|00000c30| 75 67 50 74 72 2d 3e 6e | 75 6d 43 6f 75 6e 74 73 |ugPtr->n|umCounts|
|00000c40| 29 3b 0d 09 09 09 69 66 | 28 65 72 72 20 3d 3d 20 |);....if|(err == |
|00000c50| 6e 6f 45 72 72 29 0d 09 | 09 09 7b 0d 09 09 09 09 |noErr)..|..{.....|
|00000c60| 2f 2f 20 57 72 69 74 65 | 20 74 68 65 20 62 6c 6f |// Write| the blo|
|00000c70| 63 6b 20 6f 66 20 74 68 | 72 6f 77 73 0d 09 09 09 |ck of th|rows....|
|00000c80| 09 77 72 69 74 65 53 69 | 7a 65 20 3d 20 47 65 74 |.writeSi|ze = Get|
|00000c90| 48 61 6e 64 6c 65 53 69 | 7a 65 28 28 48 61 6e 64 |HandleSi|ze((Hand|
|00000ca0| 6c 65 29 6a 75 67 50 74 | 72 2d 3e 74 68 65 54 68 |le)jugPt|r->theTh|
|00000cb0| 72 6f 77 73 29 3b 0d 09 | 09 09 09 48 4c 6f 63 6b |rows);..|...HLock|
|00000cc0| 28 28 48 61 6e 64 6c 65 | 29 6a 75 67 50 74 72 2d |((Handle|)jugPtr-|
|00000cd0| 3e 74 68 65 54 68 72 6f | 77 73 29 3b 0d 09 09 09 |>theThro|ws);....|
|00000ce0| 09 65 72 72 20 3d 20 46 | 53 57 72 69 74 65 28 72 |.err = F|SWrite(r|
|00000cf0| 65 66 4e 75 6d 2c 20 26 | 77 72 69 74 65 53 69 7a |efNum, &|writeSiz|
|00000d00| 65 2c 20 2a 6a 75 67 50 | 74 72 2d 3e 74 68 65 54 |e, *jugP|tr->theT|
|00000d10| 68 72 6f 77 73 29 3b 0d | 09 09 09 09 48 55 6e 6c |hrows);.|....HUnl|
|00000d20| 6f 63 6b 28 28 48 61 6e | 64 6c 65 29 6a 75 67 50 |ock((Han|dle)jugP|
|00000d30| 74 72 2d 3e 74 68 65 54 | 68 72 6f 77 73 29 3b 0d |tr->theT|hrows);.|
|00000d40| 09 09 09 7d 0d 09 09 7d | 09 09 0d 09 09 2f 2a 20 |...}...}|...../* |
|00000d50| 43 6c 6f 73 65 20 74 68 | 65 20 66 69 6c 65 2e 20 |Close th|e file. |
|00000d60| 49 66 20 74 68 65 72 65 | 20 77 65 72 65 20 65 72 |If there| were er|
|00000d70| 72 6f 72 73 2c 20 74 68 | 65 20 66 69 6c 65 20 69 |rors, th|e file i|
|00000d80| 73 20 64 65 6c 65 74 65 | 64 20 62 79 20 74 68 65 |s delete|d by the|
|00000d90| 20 63 61 6c 6c 65 72 2c | 20 77 68 6f 0d 09 09 63 | caller,| who...c|
|00000da0| 72 65 61 74 65 64 20 69 | 74 20 69 6e 20 74 68 65 |reated i|t in the|
|00000db0| 20 66 69 72 73 74 20 70 | 6c 61 63 65 20 2a 2f 0d | first p|lace */.|
|00000dc0| 09 09 46 53 43 6c 6f 73 | 65 28 72 65 66 4e 75 6d |..FSClos|e(refNum|
|00000dd0| 29 3b 0d 09 7d 0d 09 0d | 09 48 55 6e 6c 6f 63 6b |);..}...|.HUnlock|
|00000de0| 28 28 48 61 6e 64 6c 65 | 29 61 4a 75 67 67 6c 65 |((Handle|)aJuggle|
|00000df0| 29 3b 0d 09 72 65 74 75 | 72 6e 20 65 72 72 3b 0d |);..retu|rn err;.|
|00000e00| 7d 0d 09 0d 2f 2a 20 4f | 70 65 6e 73 20 74 68 65 |}.../* O|pens the|
|00000e10| 20 66 69 6c 65 20 69 6e | 64 69 63 61 74 65 64 20 | file in|dicated |
|00000e20| 62 79 20 66 69 6c 65 53 | 70 65 63 2c 20 72 65 61 |by fileS|pec, rea|
|00000e30| 64 73 20 74 68 65 20 6a | 75 67 67 6c 65 20 69 6e |ds the j|uggle in|
|00000e40| 2c 20 0d 61 6e 64 20 63 | 72 65 61 74 65 73 20 61 |, .and c|reates a|
|00000e50| 20 6e 65 77 20 64 6f 63 | 75 6d 65 6e 74 2c 20 73 | new doc|ument, s|
|00000e60| 68 6f 77 69 6e 67 20 74 | 68 65 20 77 69 6e 64 6f |howing t|he windo|
|00000e70| 77 2e 20 2a 2f 0d 4f 53 | 45 72 72 20 4f 70 65 6e |w. */.OS|Err Open|
|00000e80| 4a 75 67 67 6c 65 46 69 | 6c 65 28 46 53 53 70 65 |JuggleFi|le(FSSpe|
|00000e90| 63 20 2a 66 69 6c 65 53 | 70 65 63 2c 20 57 69 6e |c *fileS|pec, Win|
|00000ea0| 64 6f 77 50 74 72 20 2a | 77 69 6e 64 29 0d 7b 0d |dowPtr *|wind).{.|
|00000eb0| 09 4f 53 45 72 72 09 09 | 09 65 72 72 3b 0d 09 6c |.OSErr..|.err;..l|
|00000ec0| 6f 6e 67 09 09 09 72 65 | 61 64 53 69 7a 65 3b 0d |ong...re|adSize;.|
|00000ed0| 09 73 68 6f 72 74 09 09 | 09 72 65 66 4e 75 6d 2c |.short..|.refNum,|
|00000ee0| 20 6e 75 6d 4a 75 67 67 | 6c 65 72 73 2c 20 6e 75 | numJugg|lers, nu|
|00000ef0| 6d 43 6f 75 6e 74 73 3b | 0d 09 0d 09 2f 2a 20 4f |mCounts;|..../* O|
|00000f00| 70 65 6e 20 74 68 65 20 | 66 69 6c 65 20 61 6e 64 |pen the |file and|
|00000f10| 20 72 65 61 64 20 69 6e | 20 6a 75 73 74 20 74 68 | read in| just th|
|00000f20| 65 20 73 69 7a 65 20 28 | 6e 75 6d 4a 75 67 67 6c |e size (|numJuggl|
|00000f30| 65 72 73 20 61 6e 64 20 | 6e 75 6d 43 6f 75 6e 74 |ers and |numCount|
|00000f40| 73 29 0d 09 73 6f 20 77 | 65 20 63 61 6e 20 67 65 |s)..so w|e can ge|
|00000f50| 74 20 74 68 65 20 73 69 | 7a 65 20 6f 66 20 74 68 |t the si|ze of th|
|00000f60| 65 20 4a 75 67 67 6c 65 | 20 77 65 27 6c 6c 20 6e |e Juggle| we'll n|
|00000f70| 65 65 64 2e 20 2a 2f 0d | 09 65 72 72 20 3d 20 46 |eed. */.|.err = F|
|00000f80| 53 70 4f 70 65 6e 44 46 | 28 66 69 6c 65 53 70 65 |SpOpenDF|(fileSpe|
|00000f90| 63 2c 20 66 73 57 72 50 | 65 72 6d 2c 20 26 72 65 |c, fsWrP|erm, &re|
|00000fa0| 66 4e 75 6d 29 3b 0d 09 | 69 66 28 65 72 72 20 3d |fNum);..|if(err =|
|00000fb0| 3d 20 6e 6f 45 72 72 29 | 0d 09 7b 0d 09 09 2f 2a |= noErr)|..{.../*|
|00000fc0| 20 52 65 61 64 20 69 6e | 20 6e 75 6d 20 6a 75 67 | Read in| num jug|
|00000fd0| 67 6c 65 72 73 20 2a 2f | 0d 09 09 72 65 61 64 53 |glers */|...readS|
|00000fe0| 69 7a 65 20 3d 20 73 69 | 7a 65 6f 66 28 73 68 6f |ize = si|zeof(sho|
|00000ff0| 72 74 29 3b 0d 09 09 65 | 72 72 20 3d 20 46 53 52 |rt);...e|rr = FSR|
|00001000| 65 61 64 28 72 65 66 4e | 75 6d 2c 20 26 72 65 61 |ead(refN|um, &rea|
|00001010| 64 53 69 7a 65 2c 20 26 | 6e 75 6d 4a 75 67 67 6c |dSize, &|numJuggl|
|00001020| 65 72 73 29 3b 0d 09 09 | 69 66 28 65 72 72 20 3d |ers);...|if(err =|
|00001030| 3d 20 6e 6f 45 72 72 29 | 0d 09 09 7b 0d 09 09 09 |= noErr)|...{....|
|00001040| 2f 2a 20 52 65 61 64 20 | 69 6e 20 6e 75 6d 20 63 |/* Read |in num c|
|00001050| 6f 75 6e 74 73 20 2a 2f | 0d 09 09 09 72 65 61 64 |ounts */|....read|
|00001060| 53 69 7a 65 20 3d 20 73 | 69 7a 65 6f 66 28 73 68 |Size = s|izeof(sh|
|00001070| 6f 72 74 29 3b 0d 09 09 | 09 65 72 72 20 3d 20 46 |ort);...|.err = F|
|00001080| 53 52 65 61 64 28 72 65 | 66 4e 75 6d 2c 20 26 72 |SRead(re|fNum, &r|
|00001090| 65 61 64 53 69 7a 65 2c | 20 26 6e 75 6d 43 6f 75 |eadSize,| &numCou|
|000010a0| 6e 74 73 29 3b 0d 09 09 | 09 69 66 28 65 72 72 20 |nts);...|.if(err |
|000010b0| 3d 3d 20 6e 6f 45 72 72 | 29 0d 09 09 09 7b 0d 09 |== noErr|)....{..|
|000010c0| 09 09 09 2f 2f 20 72 61 | 6e 67 65 20 63 68 65 63 |...// ra|nge chec|
|000010d0| 6b 0d 09 09 09 09 69 66 | 28 6e 75 6d 4a 75 67 67 |k.....if|(numJugg|
|000010e0| 6c 65 72 73 20 3e 20 30 | 20 26 26 20 6e 75 6d 4a |lers > 0| && numJ|
|000010f0| 75 67 67 6c 65 72 73 20 | 3c 3d 20 6b 4d 61 78 4a |ugglers |<= kMaxJ|
|00001100| 75 67 67 6c 65 72 73 20 | 26 26 0d 09 09 09 09 09 |ugglers |&&......|
|00001110| 6e 75 6d 43 6f 75 6e 74 | 73 20 3e 20 30 20 26 26 |numCount|s > 0 &&|
|00001120| 20 6e 75 6d 43 6f 75 6e | 74 73 20 25 20 32 20 3d | numCoun|ts % 2 =|
|00001130| 3d 20 30 29 0d 09 09 09 | 09 7b 0d 09 09 09 09 09 |= 0)....|.{......|
|00001140| 57 69 6e 64 6f 77 50 74 | 72 09 6e 65 77 57 69 6e |WindowPt|r.newWin|
|00001150| 64 3b 0d 09 09 09 09 09 | 2f 2f 20 21 21 21 20 43 |d;......|// !!! C|
|00001160| 68 65 63 6b 20 74 68 65 | 20 66 69 6c 65 20 73 69 |heck the| file si|
|00001170| 7a 65 0d 09 09 09 09 09 | 0d 09 09 09 09 09 2f 2f |ze......|......//|
|00001180| 20 53 65 74 20 75 70 20 | 74 68 65 20 6e 65 77 4a | Set up |the newJ|
|00001190| 75 67 67 6c 65 0d 09 09 | 09 09 09 6e 65 77 57 69 |uggle...|...newWi|
|000011a0| 6e 64 20 3d 20 41 70 70 | 4e 65 77 28 6e 75 6d 4a |nd = App|New(numJ|
|000011b0| 75 67 67 6c 65 72 73 2c | 20 6e 75 6d 43 6f 75 6e |ugglers,| numCoun|
|000011c0| 74 73 29 3b 0d 09 09 09 | 09 09 69 66 28 6e 65 77 |ts);....|..if(new|
|000011d0| 57 69 6e 64 20 21 3d 20 | 6e 69 6c 29 0d 09 09 09 |Wind != |nil)....|
|000011e0| 09 09 7b 0d 09 09 09 09 | 09 09 4a 75 67 67 6c 65 |..{.....|..Juggle|
|000011f0| 48 61 6e 64 6c 65 09 61 | 4a 75 67 67 6c 65 3b 0d |Handle.a|Juggle;.|
|00001200| 09 09 09 09 09 09 48 61 | 6e 64 48 61 6e 64 6c 65 |......Ha|ndHandle|
|00001210| 09 09 74 68 72 6f 77 73 | 3b 0d 09 09 09 09 09 09 |..throws|;.......|
|00001220| 0d 09 09 09 09 09 09 2f | 2f 20 47 65 74 20 74 68 |......./|/ Get th|
|00001230| 65 20 6a 75 67 67 6c 65 | 2c 20 61 73 73 75 6d 65 |e juggle|, assume|
|00001240| 20 73 75 63 65 73 73 0d | 09 09 09 09 09 09 61 4a | sucess.|......aJ|
|00001250| 75 67 67 6c 65 20 3d 20 | 47 65 74 57 69 6e 64 6f |uggle = |GetWindo|
|00001260| 77 4a 75 67 67 6c 65 28 | 6e 65 77 57 69 6e 64 29 |wJuggle(|newWind)|
|00001270| 3b 0d 09 09 09 09 09 09 | 74 68 72 6f 77 73 20 3d |;.......|throws =|
|00001280| 20 28 2a 61 4a 75 67 67 | 6c 65 29 2d 3e 74 68 65 | (*aJugg|le)->the|
|00001290| 54 68 72 6f 77 73 3b 0d | 09 09 09 09 09 09 0d 09 |Throws;.|........|
|000012a0| 09 09 09 09 09 2f 2f 20 | 72 65 61 64 20 69 6e 20 |.....// |read in |
|000012b0| 74 68 72 6f 77 73 20 64 | 61 74 61 0d 09 09 09 09 |throws d|ata.....|
|000012c0| 09 09 72 65 61 64 53 69 | 7a 65 20 3d 20 6e 75 6d |..readSi|ze = num|
|000012d0| 43 6f 75 6e 74 73 20 2a | 20 6e 75 6d 4a 75 67 67 |Counts *| numJugg|
|000012e0| 6c 65 72 73 20 2a 20 73 | 69 7a 65 6f 66 28 48 61 |lers * s|izeof(Ha|
|000012f0| 6e 64 29 3b 0d 09 09 09 | 09 09 09 48 4c 6f 63 6b |nd);....|...HLock|
|00001300| 28 28 48 61 6e 64 6c 65 | 29 74 68 72 6f 77 73 29 |((Handle|)throws)|
|00001310| 3b 0d 09 09 09 09 09 09 | 65 72 72 20 3d 20 46 53 |;.......|err = FS|
|00001320| 52 65 61 64 28 72 65 66 | 4e 75 6d 2c 20 26 72 65 |Read(ref|Num, &re|
|00001330| 61 64 53 69 7a 65 2c 20 | 2a 74 68 72 6f 77 73 29 |adSize, |*throws)|
|00001340| 3b 0d 09 09 09 09 09 09 | 48 55 6e 6c 6f 63 6b 28 |;.......|HUnlock(|
|00001350| 28 48 61 6e 64 6c 65 29 | 74 68 72 6f 77 73 29 3b |(Handle)|throws);|
|00001360| 0d 09 09 09 09 09 09 0d | 09 09 09 09 09 09 2f 2f |........|......//|
|00001370| 20 64 61 74 61 20 69 73 | 20 72 65 73 74 6f 72 65 | data is| restore|
|00001380| 64 2e 20 4e 6f 77 20 77 | 65 20 6e 65 65 64 20 74 |d. Now w|e need t|
|00001390| 6f 20 64 6f 20 74 68 65 | 20 62 6f 6f 6b 6b 65 65 |o do the| bookkee|
|000013a0| 70 69 6e 67 0d 09 09 09 | 09 09 09 2f 2f 20 73 61 |ping....|...// sa|
|000013b0| 76 65 20 74 68 65 20 66 | 69 6c 65 53 70 65 63 20 |ve the f|ileSpec |
|000013c0| 61 6e 64 20 6d 61 79 62 | 65 20 74 68 65 20 77 69 |and mayb|e the wi|
|000013d0| 6e 64 6f 77 0d 09 09 09 | 09 09 09 28 2a 61 4a 75 |ndow....|...(*aJu|
|000013e0| 67 67 6c 65 29 2d 3e 66 | 69 6c 65 53 70 65 63 20 |ggle)->f|ileSpec |
|000013f0| 3d 20 2a 66 69 6c 65 53 | 70 65 63 3b 0d 09 09 09 |= *fileS|pec;....|
|00001400| 09 09 09 69 66 28 77 69 | 6e 64 20 21 3d 20 6e 69 |...if(wi|nd != ni|
|00001410| 6c 29 0d 09 09 09 09 09 | 09 09 2a 77 69 6e 64 20 |l)......|..*wind |
|00001420| 3d 20 6e 65 77 57 69 6e | 64 3b 0d 09 09 09 09 09 |= newWin|d;......|
|00001430| 09 0d 09 09 09 09 09 09 | 2f 2a 20 52 65 6e 61 6d |........|/* Renam|
|00001440| 65 20 74 68 65 20 77 69 | 6e 64 6f 77 20 74 6f 20 |e the wi|ndow to |
|00001450| 6d 61 74 63 68 20 74 68 | 65 20 66 69 6c 65 20 6e |match th|e file n|
|00001460| 61 6d 65 20 2a 2f 0d 09 | 09 09 09 09 09 53 65 74 |ame */..|.....Set|
|00001470| 57 54 69 74 6c 65 28 6e | 65 77 57 69 6e 64 2c 20 |WTitle(n|ewWind, |
|00001480| 66 69 6c 65 53 70 65 63 | 2d 3e 6e 61 6d 65 29 3b |fileSpec|->name);|
|00001490| 0d 09 09 09 09 09 09 0d | 09 09 09 09 09 09 2f 2a |........|....../*|
|000014a0| 20 63 6c 65 61 72 20 74 | 68 65 20 64 69 72 74 79 | clear t|he dirty|
|000014b0| 20 66 6c 61 67 20 2a 2f | 0d 09 09 09 09 09 09 28 | flag */|.......(|
|000014c0| 2a 61 4a 75 67 67 6c 65 | 29 2d 3e 64 69 72 74 79 |*aJuggle|)->dirty|
|000014d0| 20 3d 20 66 61 6c 73 65 | 3b 20 2f 2a 20 6e 6f 20 | = false|; /* no |
|000014e0| 6e 65 65 64 20 74 6f 20 | 73 61 76 65 20 75 6e 6c |need to |save unl|
|000014f0| 65 73 73 20 69 74 20 63 | 68 61 6e 67 65 73 20 2a |ess it c|hanges *|
|00001500| 2f 0d 09 09 09 09 09 09 | 0d 09 09 09 09 09 09 2f |/.......|......./|
|00001510| 2f 20 46 69 6e 61 6c 6c | 79 2c 20 72 65 62 75 69 |/ Finall|y, rebui|
|00001520| 6c 64 20 74 68 72 6f 77 | 73 20 61 6e 64 20 20 66 |ld throw|s and f|
|00001530| 6f 72 63 65 20 61 20 72 | 65 64 72 61 77 0d 09 09 |orce a r|edraw...|
|00001540| 09 09 09 09 52 65 62 75 | 69 6c 64 54 68 72 6f 77 |....Rebu|ildThrow|
|00001550| 73 50 69 63 74 28 61 4a | 75 67 67 6c 65 29 3b 0d |sPict(aJ|uggle);.|
|00001560| 09 09 09 09 09 09 53 65 | 74 50 6f 72 74 28 6e 65 |......Se|tPort(ne|
|00001570| 77 57 69 6e 64 29 3b 0d | 09 09 09 09 09 09 45 72 |wWind);.|......Er|
|00001580| 61 73 65 52 65 63 74 28 | 26 6e 65 77 57 69 6e 64 |aseRect(|&newWind|
|00001590| 2d 3e 70 6f 72 74 52 65 | 63 74 29 3b 0d 09 09 09 |->portRe|ct);....|
|000015a0| 09 09 09 49 6e 76 61 6c | 52 65 63 74 28 26 6e 65 |...Inval|Rect(&ne|
|000015b0| 77 57 69 6e 64 2d 3e 70 | 6f 72 74 52 65 63 74 29 |wWind->p|ortRect)|
|000015c0| 3b 0d 09 09 09 09 09 7d | 0d 09 09 09 09 7d 0d 09 |;......}|.....}..|
|000015d0| 09 09 7d 0d 09 09 7d 0d | 09 09 2f 2f 20 43 6c 6f |..}...}.|..// Clo|
|000015e0| 73 65 20 74 68 65 20 66 | 69 6c 65 0d 09 09 46 53 |se the f|ile...FS|
|000015f0| 43 6c 6f 73 65 28 72 65 | 66 4e 75 6d 29 3b 0d 09 |Close(re|fNum);..|
|00001600| 7d 0d 09 72 65 74 75 72 | 6e 20 65 72 72 3b 0d 7d |}..retur|n err;.}|
|00001610| 0d 09 09 0d 09 09 0d 09 | 09 0d 09 09 0d 0d 0d 00 |........|........|
|00001620| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00001630| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00001640| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00001650| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00001660| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00001670| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00001680| 00 00 01 00 00 00 01 54 | 00 00 00 54 00 00 00 46 |.......T|...T...F|
|00001690| 00 00 00 00 00 00 00 00 | 00 00 00 04 00 00 00 02 |........|........|
|000016a0| ab 13 81 ba 09 43 44 54 | 72 61 63 6b 65 72 00 00 |.....CDT|racker..|
|000016b0| 0d 4a 75 67 67 6c 65 46 | 69 6c 65 73 2e 63 02 00 |.JuggleF|iles.c..|
|000016c0| 00 00 54 45 58 54 4d 4d | 43 43 01 00 01 a0 00 80 |..TEXTMM|CC......|
|000016d0| 00 00 54 45 58 54 4d 4d | 43 43 01 00 01 a0 00 80 |..TEXTMM|CC......|
|000016e0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000016f0| 00 00 ab 6e 72 20 00 00 | 15 9f 00 00 01 9a 72 75 |...nr ..|......ru|
|00001700| 73 68 53 74 72 6f 6b 65 | 73 00 00 00 00 00 00 00 |shStroke|s.......|
|00001710| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 01 |........|........|
|00001720| 00 00 73 4c ab 13 94 2d | 16 53 69 6d 70 6c 65 20 |..sL...-|.Simple |
|00001730| 49 6d 61 67 65 63 6f 6d | 70 72 65 73 73 6f 72 00 |Imagecom|pressor.|
|00001740| 00 00 00 00 00 00 00 00 | 00 00 00 01 00 00 00 9f |........|........|
|00001750| ab 14 69 69 08 41 72 74 | 4d 61 6b 65 72 00 00 00 |..ii.Art|Maker...|
|00001760| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00001770| 00 00 00 00 00 00 00 01 | 00 00 00 9f ab 18 d4 d0 |........|........|
|00001780| 00 00 00 48 00 09 4d 6f | 6e 61 63 6f 00 00 00 00 |...H..Mo|naco....|
|00001790| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000017a0| 00 00 00 00 00 00 00 03 | 00 04 00 57 00 03 01 d0 |........|...W....|
|000017b0| 02 66 00 57 00 03 01 d0 | 02 66 ab b9 bd 3e 00 00 |.f.W....|.f...>..|
|000017c0| 00 4a 00 00 00 4a 00 00 | 00 00 01 00 00 00 00 04 |.J...J..|........|
|000017d0| 00 01 00 01 00 00 01 00 | 00 00 01 54 00 00 00 54 |........|...T...T|
|000017e0| 00 00 00 46 00 da 07 08 | 2f 02 00 00 00 1c 00 46 |...F....|/......F|
|000017f0| 00 01 4d 50 53 52 00 00 | 00 12 4d 57 42 42 00 00 |..MPSR..|..MWBB..|
|00001800| 00 1e 03 ed ff ff 00 00 | 00 00 00 00 00 00 03 f0 |........|........|
|00001810| ff ff 00 00 00 4c 00 00 | 00 00 00 00 00 00 00 00 |.....L..|........|
|00001820| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00001830| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00001840| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00001850| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00001860| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00001870| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
+--------+-------------------------+-------------------------+--------+--------+